home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / c / gcc261ud-c.lha / gnu / ManualBrowser / Globals.h < prev    next >
C/C++ Source or Header  |  1994-09-06  |  3KB  |  110 lines

  1. /************************************************************************/
  2. /*                                    */
  3. /*  Copyright (C) 1994  Christian Stieber                */
  4. /*                                    */
  5. /* This program is free software; you can redistribute it and/or modify    */
  6. /* it under the terms of the GNU General Public License as published by    */
  7. /* the Free Software Foundation; either version 2 of the License, or    */
  8. /* (at your option) any later version.                    */
  9. /*                                    */
  10. /* This program is distributed in the hope that it will be useful,    */
  11. /* but WITHOUT ANY WARRANTY; without even the implied warranty of    */
  12. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
  13. /* GNU General Public License for more details.                */
  14. /*                                    */
  15. /* You should have received a copy of the GNU General Public License    */
  16. /* along with this program; if not, write to the Free Software        */
  17. /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.        */
  18. /*                                    */
  19. /************************************************************************/
  20. /*                                    */
  21. /* Author address:                            */
  22. /*   Christian Stieber                            */
  23. /*   Konradstraße 41                            */
  24. /*   D-85055 Ingolstadt                            */
  25. /*   (Germany)                                */
  26. /*   Phone: 0841-59896                            */
  27. /*                                    */
  28. /************************************************************************/
  29.  
  30. #define PROGVERSION    "1.0"
  31. #define PROGDATE    "06.09.94"
  32.  
  33. /************************************************************************/
  34.  
  35. #if defined(mc68060)
  36.    #define CPU "68060"
  37. #elif defined(mc68040)
  38.    #define CPU "68040"
  39. #elif defined(mc68030)
  40.    #define CPU "68030"
  41. #elif defined(mc68020)
  42.    #define CPU "68020"
  43. #elif defined(mc68000)
  44.    #define CPU "68000"
  45. #endif
  46.  
  47. /************************************************************************/
  48.  
  49. struct ActionNode
  50.    {
  51.       struct ActionNode *Next;
  52.       char *Pattern;
  53.       char Action[3];   /* '\0' for Action, char[2] for Pattern */
  54.    };
  55.  
  56. /************************************************************************/
  57.  
  58. extern struct ExecBase *SysBase;
  59.  
  60. extern struct DosLibrary *DOSBase;
  61. extern struct IntuitionBase *IntuitionBase;
  62. extern struct Library *AmigaGuideBase;
  63. extern struct Library *UtilityBase;
  64.  
  65. /************************************************************************/
  66.  
  67. extern void *MemoryPool;
  68. extern struct ActionNode *ActionList;
  69. extern BPTR ManDir;
  70. extern long LineLength;
  71. extern char DatabaseName[64];
  72.  
  73. /************************************************************************/
  74.  
  75. #ifdef __GNUC__
  76. ULONG AmigaGuideHostDispatcher(Msg);
  77. #else
  78. ULONG __saveds __asm AmigaGuideHostDispatcher(register __a1 Msg);
  79. #endif
  80.  
  81. /************************************************************************/
  82.  
  83. void exit(int);
  84. char *Sprintf(char *, char *, ...);
  85.  
  86. #ifdef __GNUC__
  87. ULONG HookEntryA1(Msg);
  88. #endif
  89.  
  90. /************************************************************************/
  91.  
  92. #ifdef __GNUC__
  93.  
  94. static __inline char *Stpcpy(char *Dest, char *Source)
  95.  
  96. {
  97.    while ((*Dest=*Source))
  98.       {
  99.          Dest++;
  100.          Source++;
  101.       }
  102.    return Dest;
  103. }
  104.  
  105. #else
  106.  
  107. #define Stpcpy(a,b) stpcpy(a,b)
  108.  
  109. #endif
  110.